﻿using UnityEngine;
using UnityEngine.UI;
using System;

public class UILogin : MonoBehaviour
{
    private InputField m_InputName = null;
    private InputField m_InputPasswd = null;
    private Button m_Button = null;

    void Awake()
    {
        m_InputName = transform.Find("InputName").GetComponent<InputField>();
        m_InputPasswd = transform.Find("InputPasswd").GetComponent<InputField>();
        m_Button = transform.Find("Button").GetComponent<Button>();
    }

    void Start()
    {
        InitUIEvent();
    }

    private void InitUIEvent()
    {
        m_InputName.onEndEdit.AddListener(OnInputNameEndEdit);
        m_InputPasswd.onEndEdit.AddListener(OnInputPasswdEndEdit);
        m_Button.onClick.AddListener(OnButtonClick);
    }

    private void OnInputNameEndEdit(string arg0)
    {
        throw new NotImplementedException();
    }

    private void OnInputPasswdEndEdit(string arg0)
    {
        throw new NotImplementedException();
    }

    private void OnButtonClick()
    {
        throw new NotImplementedException();
    }
}
